<%@ include file="/common/taglibs.jsp"%>
bojanS

<div>
    <form:form commandName="klient" method="post" action="listklient" id="listKlient" onsubmit="return validateCountry(this)">



        <p>
        <appfuse:label styleClass="left width50" key="assMark.assMarkCode"/>
        <form:input path="kod" id="kod" cssClass="input-medium left" cssErrorClass="input-medium left error" maxlength="1000"/>
        <form:errors path="kod" cssClass="fieldError left"/>
        <br class="clearboth" />
    </p>
    <p>
    <appfuse:label styleClass="left width50" key="searchPerson.firstName"/>
    <form:input path="ime" id="ime" cssClass="input-medium left" cssErrorClass="input-medium left error" maxlength="1000"/>
    <form:errors path="ime" cssClass="fieldError left"/>
    <br class="clearboth" />
</p>
<p>
<appfuse:label styleClass="left width50" key="searchPerson.lastName"/>
<form:input path="prezime" id="prezime" cssClass="input-medium left" cssErrorClass="input-medium left error" maxlength="1000"/>
<form:errors path="prezime" cssClass="fieldError left"/>
<br class="clearboth" />
</p>


<input type="submit" class="button" name="cancel" value="<fmt:message key="button.cancel"/>" onclick="bCancel=true"/>
</form:form>



<display:table name="resultList" class="table" requestURI="" id="resultList" export="false" pagesize="25">


    <display:column property="kod" sortable="true" titleKey="assMark.assMarkCode"/>


    <display:column property="ime" sortable="true" titleKey="searchPerson.firstName"/>


    <display:column property="prezime" sortable="true" titleKey="searchPerson.lastName"/>
</display:table>
</div>
<script>
    jQuery("#resultList tbody tr").click(function () {
        var elem = jQuery(this);
        var firstName = elem.children()[0];
    
        opener.document.getElementById("responsiblePerson").value = firstName.innerHTML;
        window.close();
    });
</script>